package model

import "time"

type SysUser struct {
	Id            int       `json:"id,string" gorm:"primarykey"`
	Account       string    `json:"account" gorm:"comment:账号"`
	Password      string    `json:"password"  gorm:"comment:用户登录密码"`
	NickName      string    `json:"nickName" gorm:"comment:昵称"`
	Name          string    `json:"name" gorm:"comment:用户登录名"`
	Avatar        *int      `json:"avatar,string" gorm:"comment:头像"`
	Birthday      time.Time `json:"birthday" gorm:"生日"`
	Sex           *int8     `json:"sex" gorm:"comment:性别(字典 1男 2女 3未知)"`
	Email         string    `json:"email" gorm:"comment:邮箱"`
	Phone         string    `json:"phone" gorm:"comment:手机号"`
	Tel           string    `json:"tel" gorm:"comment:电话"`
	LastLoginIp   string    `json:"lastLoginIp" gorm:"comment:最后登陆IP"`
	LastLoginTime time.Time `json:"lastLoginTime" gorm:"comment:最后登陆时间"`
	AdminType     int8      `json:"adminType" gorm:"comment:管理员类型（0超级管理员 1非管理员）"`
	Status        int8      `json:"status" gorm:"comment:状态（字典 0正常 1冻结 2删除）"`
	CreateTime    time.Time `json:"createTime" gorm:"comment:创建时间"`
	CreateUser    int       `json:"createUser,string" gorm:"comment:创建人"`
	UpdateTime    time.Time `json:"updateTime" gorm:"comment:更新时间"`
	UpdateUser    int       `json:"updateUser,string" gorm:"comment:更新人"`
}
